package sli.sli2.channels;

/**
 * Interface for the Channel to send and receive Strings over Sockets
 * @author Group 8, Khassraf Roman, Mueller Robin, Zischka Stefan
 *
 */
public interface Channel {
	
	/**
	 * Sends a string message using the channel
	 * @param message - the message to send
	 * @throws Exception - If something goes wrong during the sending process
	 */
	public void send(byte[] message) throws Exception;
	
	/**
	 * Receives a string message over the channel
	 * @return the received message
	 * @throws Exception - If something goes wrong during the receiving process
	 */
	public String receive() throws Exception;
}
